package ooday04;

public class AnonInnerClassDemo {
    public static void main(String[] args) {
        Inter o1 = new Inter() {
            public void show() {
                System.out.println("show");
            }
        };
        o1.show();

        Inter o2 = new Inter() {
            public void show() {
                System.out.println("show");
            }
        };
        o2.show();

        Inter o3 = new Inter(){
            public void show(){
                System.out.println("show");
            }
        };
        o3.show();

    }

}

interface Inter {
    void show();
}